/*
package example;

class MyRunnable implements Runnable{
    @Override
    public void run() {
        System.out.println(1);
    }
}
public class Example5 {

    public static void main(String[] args) {
        MyRunnable run1 = null;
        Thread thread1 = new Thread(run1);
        thread1.start();

        MyRunnable run2 = new MyRunnable();
        Thread thread2 = new Thread(run2){
            @Override
            public void run() {
                System.out.println(2);
            }
        };
        thread2.start();

    }
}
*/
